package com.mxpio.erp.autoconfigure.mes;

import com.mxpio.erp.common.Constant;
import com.mxpio.erp.common.vo.ModuleVO;
import com.mxpio.erp.mes.MesConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @Author : wpp
 * @Datetime : 2023/6/29 10:58
 * @Desc :
 * @Modor :  Modifytime:
 * @modDesc :
 */
@Configuration
@ConditionalOnClass(MesConfiguration.class)
@Import(MesConfiguration.class)
@Slf4j
public class MesAutoConfiguration {
    public MesAutoConfiguration() {
        log.info("[AutoConfiguration==>]:ERP -- Mes Module Loading");

        Constant.addModule(new ModuleVO("Mes", "Mes模块"));
    }
}
